package com.suray.wcs.service.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.suray.wcs.service.enums.DeviceType;
import com.suray.wcs.service.system.entity.DeviceDB;
import com.suray.wcs.service.system.entity.PlcDB;

import java.util.List;

/**
 * @param
 * @author WX
 * @since 2019年11月11日
 */
public interface IDevicedbService extends IService<DeviceDB> {

    List<DeviceDB> findDeviceList(DeviceDB devicedb, DeviceType plcDeviceType);

    void insertDevice(DeviceDB devicedb);

    List<DeviceDB> findByType(DeviceType devicedb);

    void updateDevice(DeviceDB devicedb);


    int updateDisableById(DeviceDB devicedb);

    DeviceDB findByNode(String nodeStr);
}
